import cn.pupil.design.ICalculateArea;
import cn.pupil.design.impl.ICalculateAreaImpl;
import cn.pupil.design.impl.ICalculateAreaImplExt;
import org.junit.Test;

/**
 * @Description: 测试验证
 * @Author: pupil
 * @Date: 2024/06/21 下午 8:13
 */
public class ApiTest {

    @Test
    public void test_ICalculateAreaImplExt() {
        ICalculateArea calculateArea = new ICalculateAreaImplExt();
        double circular = calculateArea.circular(10);
        System.out.println("扩展类执行结果："+circular);
    }

    @Test
    public void test_ICalculateAreaImpl() {
        ICalculateArea calculateArea = new ICalculateAreaImpl();
        double circular = calculateArea.circular(10);
        System.out.println("原类执行结果："+circular);
    }
}
